package com.erebus.tool.impl;

import com.erebus.tool.ProductService;
import org.springframework.ai.tool.annotation.Tool;
import org.springframework.web.client.RestTemplate;

public class ProductServiceImpl implements ProductService {
    private RestTemplate restTemplate = new RestTemplate();


    @Tool(description = "根据id获取订单信息")
    @Override
    public String getProductById(String productId) {
        System.out.println(productId);


        return "根据id获取订单信息";
    }

    @Tool(description = "幸运飞机")
    @Override
    public String test(String name) {
        System.out.println(name);


        return name+"号幸运飞机";
    }
}
